import request from '@/utils/request'
export function getCate() {
    return request({
        url: 'categories',
        method: 'get'
    })
}
export function getCateParams(url) {
    return request({
        url: url,
        method: 'get'
    })
}

export function addParams(url, data) {
    return request({
        url: url,
        method: 'post',
        data: data
    })
}

export function updateParams(url, data) {
    return request({
        url: url,
        method: 'put',
        data: data
    })
}